﻿using Orchard.Data.Migration;
using Orchard;
using Orchard.ContentManagement;
using Morgma.Infographics.Models;

namespace Morgma.Infographics {
	public class Migrations : DataMigrationImpl {
		public int Create() {
			SchemaBuilder.CreateTable("GoogleInfographicsSettingsPartRecord", 
				table => table
					.ContentPartRecord()
					.Column<string>("GoogleInfographicsApiUrl")
					.Column<string>("OutputEncoding")
					.Column<string>("ErrorCorrectionLevel")
					.Column<int>("Margin")
					.Column<int>("ImageHeight")
					.Column<int>("ImageWidth")
					.Column<bool>("GetQRCode")
				);
			return 1;
		}
	}
}